﻿namespace TG
{
    //姿态类型
    public enum Posture : int
    {
        Sit, //坐姿

        Stand, //站姿
    }
    public struct QMValue
    {
        public bool enable;
        public int dampingLevel; //阻尼级别
        public float xMaxAngle;
        public float yMaxAngle;
        public void SetValue(bool _isOpen, int _dampingLevel = default, float _xAngle = default, float _yAngle = default)
        {
            enable = _isOpen;
            dampingLevel = _dampingLevel;
            xMaxAngle = _xAngle;
            yMaxAngle = _yAngle;
        }

    }
    
    public class BaseGameConfig
    {
        /// <summary>
        /// 玩家名
        /// </summary>
        public string playName;
        /// <summary>
        /// 年龄
        /// </summary>
        public string playAge;

        /// <summary>
        /// 身高
        /// </summary>
        public float playHeight;

        /// <summary>
        /// 体重
        /// </summary>
        public float playWeight;
        
        /// <summary>
        /// 难度
        /// </summary>
        public int difficulty;

        /// <summary>
        /// 游戏类型 闯关0 训练1
        /// </summary>
        public int gameType;

        /// <summary>
        /// 时间
        /// </summary>
        public int gameTime;
        
        /// <summary>
        /// 晃动灵敏度
        /// </summary>
        public SensitivityType sensitivity;

        public bool isFirstView;

        public string musicValue;

        public string tipMusicValue;

        public QMValue passive = new QMValue();

        public QMValue initiative = new QMValue();
        
        public bool isTest;

        public string baseADNodeID;
        public string chairADNodeID;
        public float gravityX;
        public float gravityY;
        public Posture posture;

        public float sensor1;
        public float sensor2;
        public float sensor3;
        public float sensor4;

        public int rolloverModel;//主动翻转模式 0前后翻转 1左右翻转 2自由翻转
        public bool tutorial;// 演示教程 true开启 false关闭
    }

}